import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_module/pages/home_page.dart';

// 路由监听器
final RouteObserver<PageRoute> routeObserver = RouteObserver<PageRoute>();

class AppPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(
          primaryColor: Colors.blue
      ),
      home: HomePage(),
      routes: {
        // "main": (context) => MinePage(),
      },
      navigatorObservers: [routeObserver],
    );
  }
}